package com.example.webcrawler.service;

import com.example.webcrawler.model.ApiRequest;

import java.util.List;

public interface RequestService {
    
    /**
     * 发送请求
     */
    ApiRequest sendRequest(ApiRequest request) throws Exception;
    
    /**
     * 保存请求
     */
    ApiRequest saveRequest(ApiRequest request);
    
    /**
     * 获取所有已保存的请求
     */
    List<ApiRequest> getAllSavedRequests();
    
    /**
     * 根据ID获取请求
     */
    ApiRequest getRequestById(String requestId);
    
    /**
     * 更新请求
     */
    ApiRequest updateRequest(String requestId, ApiRequest request);
    
    /**
     * 删除请求
     */
    void deleteRequest(String requestId);
}
